<!DOCTYPE HTML>
<html>
  <head>
    <title>KiTweet</title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <link rel="stylesheet" href="/css/construction.css" />
    <script type="text/javascript" src="/date.js"></script>
    <script type="text/javascript" src="/jquery.js"></script>
    <script type="text/javascript" src="/Message.js"></script>
    <link rel="shortcut icon" type="image/x-icon" href="/images/lightlogo.png" /> 
  </head>
  
  <body onload="renderDate()"> 
      <div id="Uinfo" data-to="{$ToID}" data-pseudo="{$UserPseudo}" data-id="{$UserID}" data-tb="{$UserAvatar}"></div>
      
    <div id="top-header">
      <div class="globlink">
	<a href="/index.php/">&nbsp;Home</a>&nbsp;&nbsp;&#124;&nbsp;&nbsp;<a href="/index.php/Inscription">&nbsp;Inscription</a>&nbsp;&nbsp;&#124;&nbsp;&nbsp;<a href="/index.php/About">&Agrave;&nbsp;propos</a>&nbsp;&nbsp;&#124;&nbsp;&nbsp;<a href="/index.php/Contact">Contact</a>&nbsp;&nbsp;&#124;&nbsp;&nbsp;<a href="/index.php/Mur">Mur</a>&nbsp;&nbsp;&#124;&nbsp;&nbsp;<a href="/index.php/Profil">Profil</a> &nbsp;&nbsp;&#124;&nbsp;&nbsp;<a href="/index.php/Membres">Membres</a> &nbsp;&nbsp;&#124;&nbsp;&nbsp;<a href="/index.php/Message">Messages</a>&nbsp;&nbsp;&#124;&nbsp;&nbsp;<a href="/index.php/Login/Logout">Logout</a>
      </div>
      <div id="currentDate"></div>
    </div>

    <div id="about"> 
     <img id ="tb" src="/avatars/{$UserAvatar}" width="100" height="100"/><h1 id="wall">&nbsp; {$UserPseudo|escape} et {$Other|escape}</h1>
     {if $Me}
        <div id="Itweet">
            <textarea id="message"></textarea>
            <br>
            <em style="color: #000; font-size: 10px;">Ctrl + Entr&eacute;e pour envoyer</em>        </div>
    {/if}
    <div id="KTweetContainer">
     {foreach name=tw item=t from=$Mess}
        <p class="Ktweet">

            {if $t.Sender == $UserID}
                {assign var='tb' value=$UserAvatar}
            {else}
                {assign var='tb' value=$FriendsData[$t['Sender']]['avatar']}
            {/if}

            <img src="/avatars/{$tb}" width="50" height="50"/>&nbsp;&nbsp;
            
            {if $t.Sender == $UserID}
                {assign var='poster' value=$UserPseudo}
            {else}
                {assign var='poster' value=$FriendsData[$t['Sender']]['pseudo']}
            {/if}
            {$poster|escape}: <br/><br/>
            <span class="text">{$t.content|escape}</span><br/><br/>
            <span class="date">Aujourd'hui à {$t.date}</span>
          </p>
     {/foreach}
    </div>
    <br>
      <center><a class="back" href="#top-header">Retour&nbsp;en&nbsp;haut&nbsp;de&nbsp;page</a></center>
    </div> 
    
    
    {include 'Credits.html'}
  </body> 
</html>
